package com.ea.admin.pojo.param.config;

import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.Valid;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotEmpty;
import java.util.List;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class EditConfParam {
    @ApiModelProperty(value = "单位id", required = true)
    @NotBlank(message = "单位id不能为空")
    private String companyId;

    @ApiModelProperty(value = "配置的信息", required = true)
    @NotEmpty(message = "配置的信息不能为空")
    @Valid
    private List<EditConfItemParam> conf;
}
